package com.example.common.config;

import com.example.sys.entity.enums.GradeEnum;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ZhengDing
 * @date 2022/1/28 12:31
 */

@Configuration
public class SerialConfig {

    //@Bean
    //public Jackson2ObjectMapperBuilderCustomizer customizer() {
    //    return builder -> builder.featuresToEnable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
    //}

    public static void main(String[] args) {
        System.out.println(GradeEnum.HIGH.toString());
    }
}
